<?php /* Smarty version 2.6.26, created on 2013-10-13 16:25:23
         compiled from ./admin/category_list.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/admin/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript" src="js/admin_delete.js">
</script>

<form method="post" action="" name="listForm">
<div class="list-div" id="listDiv">

<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
  <tr>
    <th>分类名称</th>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    <th>是否显示</th>
    <th>操作</th>
  </tr>
  
  <?php $_from = $this->_tpl_vars['category_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
  <tr align="center" class="<?php echo $this->_tpl_vars['list']['lev']; ?>
" id="<?php echo $this->_tpl_vars['list']['lev']; ?>
_<?php echo $this->_tpl_vars['list']['cat_id']; ?>
">
    <td align="left" class="first-cell" >

      <?php if ($this->_tpl_vars['cat']['is_leaf'] != 1): ?>
      <img src="images/menu_minus.gif" id="icon_<?php echo $this->_tpl_vars['list']['lev']; ?>
_<?php echo $this->_tpl_vars['list']['cat_id']; ?>
" width="9" height="9" border="0" style="margin-left:<?php echo $this->_tpl_vars['list']['lev']; ?>
em" onclick="rowClicked(this)" />
      <?php else: ?>
      <img src="images/menu_arrow.gif" width="9" height="9" border="0" style="margin-left:<?php echo $this->_tpl_vars['list']['lev']; ?>
em" />
      <?php endif; ?>
      
      <span><?php echo $this->_tpl_vars['list']['cat_name']; ?>
</span>
    </td>
    <td width="10%"><img src="./images/<?php if ($this->_tpl_vars['list']['is_show'] == 1): ?>yes.gif<?php else: ?>no.gif<?php endif; ?>" onclick="rowClicked(this)"/></td>
    <td width="24%" align="center">
      <a href="category.php?act=move&cat_id=<?php echo $this->_tpl_vars['list']['cat_id']; ?>
">转移商品</a> |
      <a href="category.php?act=edit&cat_id=<?php echo $this->_tpl_vars['list']['cat_id']; ?>
">编辑</a> |
      <a href="javascript:;" onclick="remove(this,'category.php?act=delete&id=<?php echo $this->_tpl_vars['list']['cat_id']; ?>
')" title="移除">移除</a>
    </td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>

  </table>
</div>
</form>

</body>
</html>